package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.UserWorksImages;
import com.ecoolex.ying.space.entity.UserWorksImagesExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface UserWorksImagesMapper {
    long countByExample(UserWorksImagesExample example);

    int deleteByExample(UserWorksImagesExample example);

    int deleteByPrimaryKey(Integer worksId);

    int insert(UserWorksImages record);

    int insertSelective(@Param("record") UserWorksImages record, @Param("selective") UserWorksImages.Column ... selective);

    UserWorksImages selectOneByExample(UserWorksImagesExample example);

    List<UserWorksImages> selectByExample(UserWorksImagesExample example);

    UserWorksImages selectByPrimaryKey(Integer worksId);

    UserWorksImages selectByPrimaryKeyWithLogicalDelete(@Param("worksId") Integer worksId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") UserWorksImages record, @Param("example") UserWorksImagesExample example, @Param("selective") UserWorksImages.Column ... selective);

    int updateByExample(@Param("record") UserWorksImages record, @Param("example") UserWorksImagesExample example);

    int updateByPrimaryKeySelective(@Param("record") UserWorksImages record, @Param("selective") UserWorksImages.Column ... selective);

    int updateByPrimaryKey(UserWorksImages record);

    int batchInsert(@Param("list") List<UserWorksImages> list);

    int batchInsertSelective(@Param("list") List<UserWorksImages> list, @Param("selective") UserWorksImages.Column ... selective);

    int logicalDeleteByExample(@Param("example") UserWorksImagesExample example);

    int logicalDeleteByPrimaryKey(Integer worksId);
}